package test {
	import flash.text.TextFormat;
	import flash.text.TextField;
	import flash.display.Stage;

	/**
	 * @author Administrator
	 */
	public final class ScreenTrace {
		private static var _tf:TextField;

		public static function init(stage:Stage):void {
			var tf:TextField = _tf = new TextField();
			tf.defaultTextFormat = new TextFormat("arial unicode ms", 14, 0);
			
			stage.addChild(tf);
			tf.x = 0;
			tf.y = 0;
			tf.width = stage.stageWidth;
			tf.height = stage.stageHeight;
			tf.border = true;
		}
		
		public static function trace(string:String):void {
			_tf.appendText(string);
			_tf.appendText("\r\n");
		}
	}
}
